package 多线程;

/**
 * @description: 线程
 * @author: rock
 * @create:
 **/
public class ThreadDemo {
    public static void main(String[] args) {

        Stack stack = new Stack(10);
        Producer producer = new Producer(stack);
        producer.start();
        new Thread(new Consumer(stack)).start();




    }
}
